// ******************************************************************
// * Copyright(c)  Steven Lu
// * Description   : Schema_MST_CODE_RULE
// * CreateDate    : 2014-06-05 18:30:13
// * Creater       : CodeSmith
// * LastChangeDate: 2014-06-05 18:30:13
// * LastChanger   : 2014-06-05 18:30:13
// * Version Info  : 1.0 For ESOL
// ******************************************************************

using System;
using System.Collections.Generic;
using System.Text;
using Suzsoft.Smart.EntityCore;

namespace ESOL.Common.Schema
{
  	[Serializable]
    public partial class MstCodeRuleTable : TableInfo
    {
		public const string C_TableName = "MST_CODE_RULE";
		
		public const string C_CODE_TYPE = "CODE_TYPE";
		public const string C_CODE_NAME = "CODE_NAME";
		public const string C_CODE_PREFIX = "CODE_PREFIX";
		public const string C_CODE_DATE_FORMAT = "CODE_DATE_FORMAT";
		public const string C_CODE_SEQ_LEN = "CODE_SEQ_LEN";
		public const string C_REMARK = "REMARK";
		public const string C_CURRENT_VALUE = "CURRENT_VALUE";
		public const string C_CURRENT_DAY = "CURRENT_DAY";
		
		public MstCodeRuleTable()
        {
            _tableName = "MST_CODE_RULE";
        }
		
		protected static MstCodeRuleTable _current;
        public static MstCodeRuleTable Current
        {
            get
            {
                if (_current == null)
                {
                    Initial();
                }
                return _current;
            }
        }
		
		private static void Initial()
        {
            _current = new MstCodeRuleTable();

            _current.Add(C_CODE_TYPE, new ColumnInfo(C_CODE_TYPE,"CodeType", true, typeof(string)));
            _current.Add(C_CODE_NAME, new ColumnInfo(C_CODE_NAME,"CodeName", false, typeof(string)));
            _current.Add(C_CODE_PREFIX, new ColumnInfo(C_CODE_PREFIX,"CodePrefix", false, typeof(string)));
            _current.Add(C_CODE_DATE_FORMAT, new ColumnInfo(C_CODE_DATE_FORMAT,"CodeDateFormat", false, typeof(string)));
            _current.Add(C_CODE_SEQ_LEN, new ColumnInfo(C_CODE_SEQ_LEN,"CodeSeqLen", false, typeof(int)));
            _current.Add(C_REMARK, new ColumnInfo(C_REMARK,"Remark", false, typeof(string)));
            _current.Add(C_CURRENT_VALUE, new ColumnInfo(C_CURRENT_VALUE,"CurrentValue", false, typeof(int)));
            _current.Add(C_CURRENT_DAY, new ColumnInfo(C_CURRENT_DAY,"CurrentDay", false, typeof(string)));
			
		}
		
		public ColumnInfo CODE_TYPE
        {
            get { return this[C_CODE_TYPE]; }
        }
		
		public ColumnInfo CODE_NAME
        {
            get { return this[C_CODE_NAME]; }
        }
		
		public ColumnInfo CODE_PREFIX
        {
            get { return this[C_CODE_PREFIX]; }
        }
		
		public ColumnInfo CODE_DATE_FORMAT
        {
            get { return this[C_CODE_DATE_FORMAT]; }
        }
		
		public ColumnInfo CODE_SEQ_LEN
        {
            get { return this[C_CODE_SEQ_LEN]; }
        }
		
		public ColumnInfo REMARK
        {
            get { return this[C_REMARK]; }
        }
		
		public ColumnInfo CURRENT_VALUE
        {
            get { return this[C_CURRENT_VALUE]; }
        }
		
		public ColumnInfo CURRENT_DAY
        {
            get { return this[C_CURRENT_DAY]; }
        }
		
		
		
	}
}

